function file_exists(file)
  local f = io.open(file, "rb")
  if f then f:close() end
  return f ~= nil
end

function lines_from(file)
  if not file_exists(file) then return {} end
  local lines = {}
  for line in io.lines(file) do 
    lines[#lines + 1] = line
  end
  return lines
end


local home = os.getenv('HOME')
local db = require('dashboard')
local motd = home .. '/.config/nvim/motd-clear'
-- db.preview_command = 'cat | lolcat -F 0.3'
-- db.preview_file_path = home .. '/.config/nvim/static/neovim.cat'
-- db.preview_command = 'cat'
-- db.preview_file_path = motd
-- db.preview_file_height = 12
-- db.preview_file_width = 29

-- db.custom_header = lines_from(motd)
